
body {
  margin: 0;
  height: 100vh;
  width: 100vw;
}

#root {
  height: 100vh;
  width: 100vw;
}

.view {
  margin: 0;
  padding: 0;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
}

.view li {
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  padding: 4px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
// 黑色
.main {
  width: 100%;
  height: 100%;
  background: var(--backgroundColor1);
  background-size: cover;
  position: relative;
  overflow: hidden;

  .box1 {
    width: 100%;
    height: 80px;
    background: var(--backgroundColor2);
    background-size: cover;

    p {
      float: right;
      margin-top: 40px;
      color: blue;
      margin-right: 10px;
      cursor: pointer;
      width: 120px;
      height: 30px;
      text-align: center;
      line-height: 30px;
    }

    span {
      float: right;
      color: blue;
      margin-top: 40px;
      margin-right: 10px;
      cursor: pointer;
      border: 1px solid blue;
      width: 90px;
      height: 30px;
      text-align: center;
      line-height: 30px;
      border-radius: 10px;
    }
  }

  .left {
    width: 800px;
    height: 150%;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 100;

    .select {
      width: 100px;
      text-align: center;
      height: 30px;
      margin: 0 auto;
      border-radius: 10px;
    }
  }

  .right {
    width: 700px;
    height: 400px;
    position: absolute;
    top: 180px;
    right: 50px;
    z-index: 100;
    background: var(--backgroundColor3);
    background-size: cover;

    .right-1 {
      width: 85%;
      height: 300px;
      padding: 20px;
      margin: 30px auto;
      .right-1-1 {
        width: 95%;
        height: 250px;
        background-color: #fff;
        padding: 2px;
        display: flex;
        overflow: auto;
      }

      input {
        width: 80%;
        height: 60px;
        float: left;
        border: none;
        border: 1px solid #000;
        outline: none;
        padding: 0 10px;
        font-size: 20px;
      }

      button {
        width: 80px;
        height: 64px;
        float: left;
        background-color: #35fd8f;
        border: none;
        cursor: pointer;
      }

      .btn {
        position: fixed;
        z-index: 10000;
        bottom: 180px;
        right: 75px;
        width: 55px;
        height: 25px;
        text-align: center;
        line-height: 25px;
        background-color: rgb(107, 252, 124);
        border-radius: 30px;
        font-size: 10px;
        border: none;
        // 小手
        cursor: pointer;

        &:hover {
          background-color: rgb(56, 136, 64);
          color: #fff;
        }
      }

      .right-1-2 {
        width: 50%;
        height: 100%;
        .right-1-1-1 {
          display: flex;
          align-items: center;
          margin-top: 20px;

          img {
            width: 50px;
            height: 50px;
            margin-right: 10px;
            border-radius: 50%;
          }

          span {
            background-color: rgb(107, 252, 124);
            border-radius: 30px;
            line-height: 30px;
            padding: 0 5px;
            font-size: 13px;
          }
        }
      }

      .right-1-3 {
        width: 50%;
        height: 100%;
        .right-1-1-2 {
          display: flex;
          align-items: center;
          margin-top: 20px;
          flex-direction: row-reverse;
          margin-top: 20px;

          img {
            width: 50px;
            height: 50px;
            margin-left: 10px;
            border-radius: 50%;
          }

          span {
            background-color: rgb(107, 252, 124);
            border-radius: 30px;
            line-height: 30px;
            padding: 0 5px;
            font-size: 13px;
          }
        }
      }
    }
  }

  .top {
    width: 100%;
    height: 100px;
    background: var(--backgroundColor4);
    background-size: cover;
    position: absolute;
    bottom: 0px;
    left: 0px;
    z-index: 100;

    .top-1 {
      position: absolute;
      right: 0;
      top: 0px;

      img {
        width: 55px;
        margin-right: 20px;
      }
    }

    .img {
      width: 100px;
      height: 100px;
      position: absolute;
      left: 47%;
      top: -40%;
      border-radius: 50%;
    }
  }

  .top-2 {
    position: absolute;
    right: 30px;
    top: 100px;
    width: 280px;
    height: 50px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    span {
      width: 80%;
      background-color: #fde473;
      text-align: center;
      height: 40px;
      line-height: 40px;
      border-radius: 25px 25px 0 25px;
    }

    img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
    }
  }
}


.leva-c-kWgxhW {
  width: 250px !important;
  position: fixed;
  left: 0;
  top: 40px !important;
}

.AI {
  width: 100%;
  height: 100vh;
  overflow: hidden;

  .AI-1 {
    width: 100%;
    height: 100vh;
  }
}



.login {
  width: 100%;
  height: 100vh;
  background: var(--bbb);
}


// :root 伪类：:root 伪类匹配文档树的根元素。在HTML文档中，:root 伪类通常匹配 <html> 元素。通过使用 :root，可以定义全局样式变量或者在整个文档范围内应用样式。
// 组合使用 :root.dark：当 :root 伪类和 .dark 类选择器组合在一起时，它选择的是具有 dark 类的根元素。通常，这种用法是为了在暗模式（Dark Mode）下应用特定的样式。
// 实现原理
// 当用户将根元素（通常是 <html> 元素）添加 dark 类时，浏览器会应用 :root.dark 下定义的所有样式规则。例如，如果暗模式被激活，开发者可以通过 JavaScript 动态地为 <html> 元素添加 dark 类，从而触发这些样式规则。
:root.dark {

  // 主背景
  .main {
    background: url(../../../public/images/bg-day.png);
    background-size: cover;
  }

  .box1 {
    background: url(../../../public/images/ceil.png);
    background-size: cover;
  }

  // 右侧背景
  .right {
    background: url(../../../public/images/border.png);
    background-size: cover;
  }

  // 顶部背景
  .top {
    background: url(../../../public/images/floor.png) no-repeat center;
    background-size: cover;
  }

  //   登录页面背景
  .login {
    background: rgba($color: #000000, $alpha: 1.0);
  }
}

// 定义根元素样式 css变量
:root {
  // 背景
  --backgroundColor1: url(../../../public/images/indexLightBackground.png) no-repeat center;
  --backgroundColor2: url(../../../public/images/ceil-day.png) no-repeat center;
  --backgroundColor3: url(../../../public/images/border-day.png) no-repeat center;
  --backgroundColor4: url(../../../public/images/floor-day.png) no-repeat center;
  --bbb: rgb(97, 0, 233);
}
.input-container {
  display: flex;
  gap: 10px;
  padding: 10px;
  
  input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  button {
    padding: 8px 16px;
    background-color: #1890ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    
    &:hover {
      background-color: #40a9ff;
    }
  }
}